﻿@model ShotURL.Models.DataManager
<ol>
@foreach (ShotURL.Models.InfoKey item in Model.GetInfoKey()) 
{
    string longUrl;
    if (item.ShotUrl.LongUrl.Length > 40)
    {
        longUrl = item.ShotUrl.LongUrl.Substring(0, 40);
    }
    else { longUrl = item.ShotUrl.LongUrl; }
    <li>@item.ShotUrl.ShotKey - @Html.ActionLink(longUrl, "ClickUrl", new { id = item.InfoID }, new {target="blank_" }) - @item.ClickShotUrl </li>
}
</ol>
@section AddUrl 
{
@{string s="";}
@using (Html.BeginForm("AddShotURL", "", new { url = Model.url }))
{
    <fieldset>
        <legend>ShotUrl</legend>
        <div class="editor-field">
        @Html.EditorFor(model => Model.url)  
        </div> <input type="submit" value="Преобразовать" />
    </fieldset>
                         }
}

